package sis.ui;

import junit.framework.*;
import javax.swing.*;
import java.awt.*;
import static sis.ui.CoursesPanel.*;

public class CoursesPanelTest extends TestCase {
	private CoursesPanel panel;
	
	protected void setUp() {
		panel = new CoursesPanel();
	}
	
	public void testCreate() {
		assertLabelText(COURSES_LABEL_NAME, COURSES_LABEL_TEXT);
	}
	
	private void assertLabelText(String name, String text) {
		JLabel label = panel.getLabel(name);
		assertEquals(text, label.getText());
	}
}
